package com.gemo.demo.service.impl;

import com.gemo.demo.entiy.Admin;
import com.gemo.demo.mapper.AdminMapper;
import com.gemo.demo.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements IAdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin login(String username, String password) {
        return adminMapper.selectByUsername(new Admin(0,username,password));
    }
}
